package com.qingyouchuxing.mall.biz.domain.dto;

import com.qingyouchuxing.mall.biz.domain.entity.MallGoods;
import com.qingyouchuxing.mall.biz.enums.MallGoodsStatus;
import com.ruoyi.common.orm.core.domain.BaseDTO;
import com.ruoyi.common.orm.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 商品业务对象 mall_goods
 *
 * @author 数据小王子
 * @date 2024-09-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MallGoods.class, reverseConvertGenerate = false)
public class MallGoodsDTO extends BaseDTO
{

    /**
     * 主键
     */
    private Long id;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 上下架状态(字典 0:下架  1:上架)
     */
    private MallGoodsStatus status;

    /**
     * 小于该数量的查询
     */
    private Integer count;
}
